<?php
/**
 * Created by PhpStorm.
 * User: hongtianjin
 * Date: 2017/3/1 0001
 * Time: 17:07
 */

namespace App\Models\ActivityPoints;

use App\Models\Groupable;
use App\Support\Database\Eloquent\UuidModel;

class ActivityPoints extends UuidModel
{
    use Groupable;

    protected $fillable = ['point_name', 'point_key', 'desc', 'user_id', 'group_code'];

    public function withActivityDelivery()
    {
        return $this->hasOne('\App\Models\ActivityDelivery\ActivityDelivery', 'point_id', 'id');
    }
}
